<?php

interface ITopicsService {
	
	/**
	 * Get topics.
	 * 
	 * @return array[int]Topic
	 */
	function fetchAllTopics();
	
	/**
	 * Insert new topic.
	 *
	 * @param Topic $topic
	 * @return int current sequenceId used for topic
	 */
	function insertTopic(Topic $topic);
	
	/**
	 * Update existing topic.
	 *
	 * @param Topic $topic
	 */
	function updateTopic(Topic $topic);
}

?>